﻿using NewLife.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace XsClient.Common
{
    /// <summary>
    /// ContextFilter
    /// 创建人：zhangyang
    /// 创建时间：2020/8/20 10:03:16
    /// </summary>
    public class ContextFilter : Config<ContextFilter>
    {
        public List<FilterRegex> Filters { get; set; }
    }
    /// <summary>
    /// 过滤正则
    /// </summary>
    public class FilterRegex
    {
        public string Name { get; set; }
        public string RegexStr { get; set; }

        public override string ToString()
        {
            return string.Format("{0}[{1}]", Name, RegexStr);
        }
    }
}
